/**
 * 作者: hxl
 * 日期: 2024-12-11 17:53:07
 * 备注: 用户花店任务表
 */
package com.motu.monstercity.server.game.userdata;

import com.motu.monstercity.server.game.commondata.florist.FloristTask;
import com.motu.monstercity.server.game.logic.FloristManager;

public class UserFloristTask extends UserFloristTaskModel {
    public UserFloristTask() {
        super();
    }
    public UserFloristTask(long userId, int taskId) {
        putUserId(userId);
        putTaskId(taskId);
    }

    public int getSort() {
        FloristTask task = FloristManager.getFloristTask(taskId);
        if (task == null) {
            return 0;
        }
        return task.getSort();
    }

    public boolean isReceive() {
        return isRecv == 1;
    }
}
